Adwaita: some more notebook work...
authorLapo Calamandrei <calamandrei@gmail.com>
Thu, 3 Jul 2014 11:19:11 +0000 (13:19 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Thu, 3 Jul 2014 11:19:11 +0000 (13:19 +0200)
...to try to make tab with close buttons to look better.

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index a98a699d1592c70c570a007066418b2f43b47518..5d44f4a33f5c0afc23aba088b6e2cbdb51d6537a 100644 (file)
@@ -1056,6 +1056,8 @@ GtkTreeView.view.progressbar { //Progressbar in treeview cells
     */
     &.reorderable-page {
       &.top, &.bottom {
+        padding-left: 12px;  // for a nicer close button
+        padding-right: 12px; // placement
         border-left-width: 1px;
         border-right-width: 1px;
       }
@@ -1065,19 +1067,19 @@ GtkTreeView.view.progressbar { //Progressbar in treeview cells
       }
     }
     &.top {
-      padding-bottom: ($vt_vpadding -$tab_indicator_size);
+      //padding-bottom: ($vt_vpadding -$tab_indicator_size);
       border-bottom-width: $tab_indicator_size;
     }
     &.bottom {
-      padding-top: ($vt_vpadding -$tab_indicator_size);
+      //padding-top: ($vt_vpadding -$tab_indicator_size);
       border-top-width: $tab_indicator_size;
     }
     &.left {
-      padding-right: ($ht_hpadding -$tab_indicator_size);
+      //padding-right: ($ht_hpadding -$tab_indicator_size);
       border-right-width: $tab_indicator_size;
     }
     &.right {
-      padding-left: ($ht_hpadding -$tab_indicator_size);
+      //padding-left: ($ht_hpadding -$tab_indicator_size);
       border-left-width: $tab_indicator_size;
     }
 
index 0d501583bdfc0f0fd63b963017b3d9ae2ba788ed..feb8d4d457fee7d1779c9a7422718f2b4039e895 100644 (file)
@@ -1243,22 +1243,20 @@ GtkTreeView.view.progressbar {
     .notebook tab.left, .notebook tab.right {
       padding: 5px 20px; }
     .notebook tab.reorderable-page.top, .notebook tab.reorderable-page.bottom {
+      padding-left: 12px;
+      padding-right: 12px;
       border-left-width: 1px;
       border-right-width: 1px; }
     .notebook tab.reorderable-page.left, .notebook tab.reorderable-page.right {
       border-bottom-width: 1px;
       border-top-width: 1px; }
     .notebook tab.top {
-      padding-bottom: 5px;
       border-bottom-width: 3px; }
     .notebook tab.bottom {
-      padding-top: 5px;
       border-top-width: 3px; }
     .notebook tab.left {
-      padding-right: 17px;
       border-right-width: 3px; }
     .notebook tab.right {
-      padding-left: 17px;
       border-left-width: 3px; }
     .notebook tab:hover, .notebook tab.prelight-page {
       border-color: #1c1f1f; }
index d6df0e9de1952e2f6ea9bd16a063b3191726d3ac..6961c23f2aca4c303b97bb7082dee12ec00697d2 100644 (file)
@@ -1236,22 +1236,20 @@ GtkTreeView.view.progressbar {
     .notebook tab.left, .notebook tab.right {
       padding: 5px 20px; }
     .notebook tab.reorderable-page.top, .notebook tab.reorderable-page.bottom {
+      padding-left: 12px;
+      padding-right: 12px;
       border-left-width: 1px;
       border-right-width: 1px; }
     .notebook tab.reorderable-page.left, .notebook tab.reorderable-page.right {
       border-bottom-width: 1px;
       border-top-width: 1px; }
     .notebook tab.top {
-      padding-bottom: 5px;
       border-bottom-width: 3px; }
     .notebook tab.bottom {
-      padding-top: 5px;
       border-top-width: 3px; }
     .notebook tab.left {
-      padding-right: 17px;
       border-right-width: 3px; }
     .notebook tab.right {
-      padding-left: 17px;
       border-left-width: 3px; }
     .notebook tab:hover, .notebook tab.prelight-page {
       border-color: #a1a1a1; }